package com.ly.heart.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import javax.annotation.Resource;
import com.ly.common.utils.DateUtils;
import com.ly.heart.mapper.KingReceiveNoticeMaterialDetailSerialMapper;
import com.ly.heart.service.IKingReceiveNoticeMaterialDetailSerialService;
import org.springframework.stereotype.Service;
import com.ly.heart.domain.KingReceiveNoticeMaterialDetailSerialEntity;

/**
 * 金蝶-收料通知单明细序列号Service业务层处理
 *
 * @author cxl
 * @date 2024-08-09
 */
@Service
public class KingReceiveNoticeMaterialDetailSerialServiceImpl extends ServiceImpl<KingReceiveNoticeMaterialDetailSerialMapper,KingReceiveNoticeMaterialDetailSerialEntity> implements IKingReceiveNoticeMaterialDetailSerialService {

    @Resource
    private KingReceiveNoticeMaterialDetailSerialMapper kingReceiveNoticeMaterialDetailSerialMapper;

    /**
     * 查询金蝶-收料通知单明细序列号
     *
     * @param id 金蝶-收料通知单明细序列号ID
     * @return 金蝶-收料通知单明细序列号
     */
    @Override
    public KingReceiveNoticeMaterialDetailSerialEntity selectKingReceiveNoticeMaterialDetailSerialEntityById(String id)
    {
        return kingReceiveNoticeMaterialDetailSerialMapper.selectKingReceiveNoticeMaterialDetailSerialEntityById(id);
    }

    /**
     * 查询金蝶-收料通知单明细序列号列表
     *
     * @param kingReceiveNoticeMaterialDetailSerialEntity 金蝶-收料通知单明细序列号
     * @return 金蝶-收料通知单明细序列号
     */
    @Override
    public List<KingReceiveNoticeMaterialDetailSerialEntity> selectKingReceiveNoticeMaterialDetailSerialEntityList(KingReceiveNoticeMaterialDetailSerialEntity kingReceiveNoticeMaterialDetailSerialEntity)
    {
        return kingReceiveNoticeMaterialDetailSerialMapper.selectKingReceiveNoticeMaterialDetailSerialEntityList(kingReceiveNoticeMaterialDetailSerialEntity);
    }

    /**
     * 新增金蝶-收料通知单明细序列号
     *
     * @param kingReceiveNoticeMaterialDetailSerialEntity 金蝶-收料通知单明细序列号
     * @return 结果
     */
    @Override
    public int insertKingReceiveNoticeMaterialDetailSerialEntity(KingReceiveNoticeMaterialDetailSerialEntity kingReceiveNoticeMaterialDetailSerialEntity)
    {
        kingReceiveNoticeMaterialDetailSerialEntity.setCreateTime(DateUtils.getNowDate());
        return kingReceiveNoticeMaterialDetailSerialMapper.insertKingReceiveNoticeMaterialDetailSerialEntity(kingReceiveNoticeMaterialDetailSerialEntity);
    }

    /**
     * 修改金蝶-收料通知单明细序列号
     *
     * @param kingReceiveNoticeMaterialDetailSerialEntity 金蝶-收料通知单明细序列号
     * @return 结果
     */
    @Override
    public int updateKingReceiveNoticeMaterialDetailSerialEntity(KingReceiveNoticeMaterialDetailSerialEntity kingReceiveNoticeMaterialDetailSerialEntity)
    {
        return kingReceiveNoticeMaterialDetailSerialMapper.updateKingReceiveNoticeMaterialDetailSerialEntity(kingReceiveNoticeMaterialDetailSerialEntity);
    }

    /**
     * 批量删除金蝶-收料通知单明细序列号
     *
     * @param ids 需要删除的金蝶-收料通知单明细序列号ID
     * @return 结果
     */
    @Override
    public int deleteKingReceiveNoticeMaterialDetailSerialEntityByIds(String[] ids)
    {
        return kingReceiveNoticeMaterialDetailSerialMapper.deleteKingReceiveNoticeMaterialDetailSerialEntityByIds(ids);
    }

    /**
     * 删除金蝶-收料通知单明细序列号信息
     *
     * @param id 金蝶-收料通知单明细序列号ID
     * @return 结果
     */
    @Override
    public int deleteKingReceiveNoticeMaterialDetailSerialEntityById(String id)
    {
        return kingReceiveNoticeMaterialDetailSerialMapper.deleteKingReceiveNoticeMaterialDetailSerialEntityById(id);
    }
}
